﻿#pragma once

//实现vtk渲染窗口的功能
#include <map>
#include <QComboBox>
#include <QPushButton>
#include <QLineEdit>

#include "DlgBase.h"


//单例模式  
class DlgRunFindSubNets: public DlgBase
{
public:
    DlgRunFindSubNets(QWidget* parent = nullptr);
    ~DlgRunFindSubNets();

    bool RunTool();
    void initUI() override;
    void manageConnections() override;

    void resetToolUI();

private:
    enum EToolType
    {
        E_JS_FINDER,
        E_ONE_FOR_ALL
    };

    std::map<int, QString> m_toolSelectBoxTexMap
    {
        { E_JS_FINDER, "JSFinder" },
        { E_ONE_FOR_ALL, "OneForAll" }
    };

    int m_toolType = E_JS_FINDER;
    QComboBox* m_pToolSelecComboBox = nullptr;

    QLineEdit* m_pNetInfoEdit = nullptr;
    MyDoubleEdit* m_pJSFinderNum = nullptr;
    MyDoubleEdit* m_pOneForAllNum = nullptr;

    QPushButton* m_pOkBtn = nullptr; //ok button
    QPushButton* m_pCancelBtn = nullptr;   //cancel button
};


